<div class="head-content">
    <h3>Daftar Format Output</h3>
    <div class="clear"></div>
</div>
<div class="sub-nav-content">
    <ul>
        <li><a href="{$config->site_url({'output/opoutputversions'})}">&lt;&lt; Kembali ke daftar</a></li>
        <li><a href="{$config->site_url({'output/opoutputversions/edit/'|cat:$detail.output_id|default:''})}">Edit Versi</a></li>
        <li><a href="{$config->site_url({'output/opoutputversions/rows/'|cat:$detail.output_id|default:''})}">Pengaturan Baris</a></li>
        {if !empty($jumlah_baris)}
        <li><a href="{$config->site_url({'output/opoutputversions/upload/'|cat:$detail.output_id|default:''})}" class="active">Upload File</a></li>
        <li><a href="{$config->site_url({'output/opoutputversions/manage/'|cat:$detail.output_id|default:''})}">Pengaturan Field</a></li>
        {/if}
    </ul>
    <div class="clear"></div>
</div>
<div class="table-info-box">
    <h3>Detail Format</h3>
    <table class="table-info" width="100%">
        <tr>
            <td width="25%">Versi Format Output<br /><em>Output Versions</em> </td>
            <td width="25%"><b>{$detail.output_version|default:''}</b></td>
            <td width="25%">Jenis File <br /><em>File Type</em> </td>
            <td width="25%"><b>{$detail.output_file_type|default:''}</b></td>
        </tr>
        <tr>
            <td>Jenis Format <br /><em>Format Type</em> </td>
            <td colspan="3"><b>{$detail.output_format_type|default:''}</b></td>
        </tr>
    </table>
</div>
<div class="clear"></div>
<!-- notification template -->
{include file="base/templates/notification.html"}
<!-- end of notification template-->
<form action="{$config->site_url('output/opoutputversions/process_upload')}" method="post" enctype="multipart/form-data">
    <input type="hidden" name="output_id" value="{$detail.output_id|default:''}" />
    <table class="table-input" width="100%">
        <tr class="headrow">
            <th colspan="2">Upload Form</th>
        </tr>
        <tr>
            <td width="25%">Baris Mulai <br /><em>Start Row</em> </td>
            <td width="75%"><input type="text" size="4" maxlength="4" name="output_row" value="{$result.output_row|default:''}" /> * <em>required</em></td>
        </tr>
        <tr>
            <td>Pemisah Data<br /><em>Delimiter</em> </td>
            <td><input type="text" size="5" maxlength="10" name="output_delimiter" value="{$result.output_delimiter|default:''}" /> <em>for TXT and CSV</em></td>
        </tr>
        <tr>
            <td>Cari Berkas <br /><em>Upload File</em> </td>
            <td><input type="file" name="output_file_path" size="30" /> * <em>required</em></td>
        </tr>
        {if $download eq 'true'}
        <tr>
            <td></td>
            <td><a href="{$config->site_url({'output/opoutputversions/download/'|cat:$detail.output_id|default:''})}">{$detail.output_file_path|default:''}</a></td>
        </tr>
        {/if}
        <tr>
            <td></td>
            <td><input type="submit" name="save" value="Upload &amp Next" /> </td>
        </tr>
    </table>
</form>
